package com.sam.security.domain;

import java.io.Serializable;
import java.util.List;

/**
 * The Class TreeNode.
 */
public class TreeNode implements Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/** The id. */
	private String id;

	/** The text. */
	private String text;

	/** The cls. */
	private String cls;

	/** The leaf. */
	private boolean leaf;

	/** The module name. */
	private String link;

	/** The children. */
	private List<TreeNode> children;
	
	private String iconCls;
	
	private String icon;
	

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * Sets the id.
	 * 
	 * @param id
	 *            the new id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * Gets the text.
	 * 
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * Sets the text.
	 * 
	 * @param text
	 *            the new text
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * Gets the cls.
	 * 
	 * @return the cls
	 */
	public String getCls() {
		return cls;
	}

	/**
	 * Sets the cls.
	 * 
	 * @param cls
	 *            the new cls
	 */
	public void setCls(String cls) {
		this.cls = cls;
	}

	/**
	 * Checks if is leaf.
	 * 
	 * @return true, if is leaf
	 */
	public boolean isLeaf() {
		return leaf;
	}

	/**
	 * Sets the leaf.
	 * 
	 * @param leaf
	 *            the new leaf
	 */
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	/**
	 * Gets the children.
	 * 
	 * @return the children
	 */
	public List<TreeNode> getChildren() {
		return children;
	}

	/**
	 * Sets the children.
	 * 
	 * @param children
	 *            the new children
	 */
	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}

	/**
	 * Gets the serial version uid.
	 * 
	 * @return the serial version uid
	 */
	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	/**
	 * Gets the module name.
	 * 
	 * @return the module name
	 */
	public String getLink() {
		return link;
	}

	/**
	 * Sets the module name.
	 * 
	 * @param link
	 *            the new module name
	 */
	public void setLink(String link) {
		this.link = link;
	}

}
